<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::get('/test', 'TestController@index');

// 接口验证
Route::any('/callback','Weixin\CallbackController@weixinFollow');

// 用户授权
Route::any('/weixin/userScopes','Weixin\CallbackController@userScopes');

// 用户授权回调
Route::get('/weixin/oauthCallback','Weixin\CallbackController@oauthCallback');

// 用户信息
Route::any('/weixin/userinfo','Weixin\CallbackController@getUserInfo');

// 用户领取奖品 核销
Route::any('/draw','DrawController@draw');